using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerManager : MonoBehaviour
{
    public PlayerShuXing player;
    private void Awake()
    {
        EventCenter.GetInstance().AddEventListener("Playinit", init);
    }
    public void init()
    {
        player.player.yingyang = Random.Range(0, 2)==0;


        for (int i=0;i<6;i++)
        {
            player.player.shuxing[i] = Random.Range(0, 101);

        }
        player.player.shuxing[6] = 0;
        for (int i=0;i<5;i++)
        {
            player.player.wuxing[i] = Random.Range(0, 101);

        }
    }
}
